﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UsingTemplatedControl.aspx.cs" Inherits="UsingTemplatedControl" %>

<%@ Register Src="SimpleTemplatedControl.ascx" TagName="SimpleTemplatedControl" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <uc1:SimpleTemplatedControl ID="SimpleTemplatedControl1" runat="server">
            <MessageTemplate>
                Index:
                <asp:Label runat="server" ID="Label1" Text='<%# Container.Index %>' />
                <br />
                Message:
                <asp:Label runat="server" ID="Label2" Text='<%# Container.Message %>' />
                <hr />
            </MessageTemplate>
        </uc1:SimpleTemplatedControl>
    </div>
    </form>
</body>
</html>
